class Topic:
    topic_id: int
    topic_num: int
    topic_type: str
    topic_context: str
    topic_answer: str
    topic_score: int

    def __init__(
        self,
        topic_id=1,
        topic_type="code",
        topic_num=1,
        topic_context="请实现一个函数，输入一个字符串，输出该字符串反转后的字符串。",
        topic_answer="def reverse_string(s):\n    return s[::-1]",
        topic_score=100,
    ):
        self.topic_id = topic_id
        self.topic_type = topic_type
        self.topic_num = topic_num
        self.topic_context = topic_context
        self.topic_answer = topic_answer
        self.topic_score = topic_score